package com.arcsoft.crud.Constants;

public class Global {

	//操作类型
	public static final String OPERATOR_TYPE_INSERT = "insert";
	public static final String OPERATOR_TYPE_UPDATE = "update";
	public static final String OPERATOR_TYPE_DELETE = "delete";
	public static final String OPERATOR_TYPE_SELECT_SINGLE = "select_single";
	public static final String OPERATOR_TYPE_SELECT_MULTIPLE = "select_multiple";
	
	public static int THREAD_COUNT = 5;//模拟并发数
	public static long LOOP_COUNT = 500000;//模拟每个线程执行次数
	//public static String OPERATOR_TYPE = "insert";//操作类型
	
	public static String DEFALUT_TABLE_TASK_LOG = "optimize_analyze_log";//记录日志表
	
	public static int PRINT_INTERVAL_SECONDS = 10;//多少秒打印一次日志，类似于tpcc，暂时没用
	
	public static int WARMTIME = 1; //以秒为单位 预热时间
	public static int EXECUTE_TIME = 60;//以秒为单位 循环执行时间
	public static String DRIVERCLASS="com.mysql.jdbc.Driver";
	public static String USERNAME="root";
	public static String PASSWORD="root1234";
	public static String CONNECTURL="jdbc:mysql://localhost/test";
	public static int MAXACTIVE=100;
	public static int INITCONN = 20;
	public static int MAXIDLE=10;
	public static int MAXWAIT=1000;
	public static int REMOVEABANDONEDTIMEOUT=180;
}
